package cn.wolfcode.crm.web.controller;

import cn.wolfcode.crm.domain.PayClassify;
import cn.wolfcode.crm.service.IPayClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/payclassify")
public class PayClassifyController {
    @Autowired
    private IPayClassifyService payClassifyService;

    @RequestMapping("listAll")
    @ResponseBody
    public List<PayClassify> listAll(){
        List<PayClassify> list=payClassifyService.listAll();
        return list;
    }
}
